package com.studyyoun.android.nonghe.welcom;
/**
 * Created by zhaolong on 2017/10/3.
 * 站在顶峰，看世界
 * 落在谷底，思人生
 */

import android.content.Context;

import com.mob.MobApplication;
import com.studyyoun.android.androidcommonbaselibrary.utils.LogUtils;
import com.studyyoun.android.nonghe.share.QQMainFunction;
import com.umeng.analytics.MobclickAgent;

import cn.jpush.android.api.JPushInterface;

/**
 * class infation
 */
public class App extends MobApplication {
    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        QQMainFunction.getInstance();
        JPushInterface.setDebugMode(LogUtils.isDebuggable());
        JPushInterface.init(this);
        /**
         * 参数二 最多显示的推送条数
         */
        JPushInterface.setLatestNotificationNumber(this, 10);

        //友盟
        MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType. E_UM_NORMAL);
        //开启错误统计
        MobclickAgent.setCatchUncaughtExceptions(true);
    }

    public static Context getInstance(){
        return  mContext;
    }
}
